import Layout from '@/layout'

export const userRouter = [
  //用户
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    component: Layout,
    children: [ 
      {
        path: '/home',
        component: () => import('@/views/user/home/home'),
        meta: { title: '首页', icon: '1' },
      },
    ],
  },
  {
    path: '/property',
    component: Layout,
    meta: { title: '知识产权管理', icon: '20' },
    children: [
      {
        path: '/patent',
        component: () => import('@/views/user/patent/patent'),
        meta: { title: '——专利' },
      },
      // {
      //   path: '/trademark',
      //   component: () => import('@/views/user/patent/trademark'),
      //   meta: { title: '——商标 (建设中)' },
      // },
      // {
      //   path: '/copyright',
      //   component: () => import('@/views/user/patent/copyright'),
      //   meta: { title: '——版权和软著 (建设中)' },
      // },
      {
        path: '/litigation',
        component: () => import('@/views/user/litigation/litigation'),
        meta: { title: '——诉讼' },
      },
      // {
      //   path: '/overseas',
      //   component: () => import('@/views/user/patent/overseas'),
      //   meta: { title: '——海外 (建设中)' },
      // },
    ],
  },
  {
    path: '/certificate',
    component: Layout,
    children: [
      {
        path: '/certificateData',
        component: () => import('@/views/user/certificate/certificate'),
        meta: { title: '证书管理', icon: '19' },
      }
      // {
      //   path: '/certificateData',
      //   component: () => import('@/views/user/certificate/certificate'),
      //   meta: { title: '——资料' },
      // },
      // {
      //   path: '/standard',
      //   component: () => import('@/views/user/certificate/standard'),
      //   meta: { title: '——标准' },
      // },
      // {
      //   path: '/equipment',
      //   component: () => import('@/views/user/certificate/equipment'),
      //   meta: { title: '——特种设备' },
      // },
      // {
      //   path: '/other',
      //   component: () => import('@/views/user/certificate/other'),
      //   meta: { title: '——其他' },
      // },
    ],
  },

  {
    path: '/patentDetails',
    component: () => import('@/views/user/patent/details'),
    meta: {
      title: '管理详情'
    },
    hidden: true
  },
  {
    path: '/NotpatentDetails',
    component: () => import('@/views/user/patent/Notdetails'),
    meta: {
      title: '管理详情'
    },
    hidden: true
  },

  // {
  //   path: '/competitor',
  //   component: Layout,
  //   children: [
  //     {
  //       path: '/competitor',
  //       component: () => import('@/views/user/competitor/competitor'),
  //       meta: { title: '竞争对手监控', icon: '3' },
  //     },
  //   ],
  // },

  {
    path: '/compdetail',
    component: () => import('@/views/user/competitor/details'),
    meta: {
      title: '监控详情'
    },
    hidden: true
  },

  // {
  //   path: '/cutting',
  //   component: Layout,
  //   children: [
  //     {
  //       path: '/cutting',
  //       component: () => import('@/views/user/cutting/cutting'),
  //       meta: { title: '产学研情报', icon: '4' },
  //     },
  //   ],
  // },
  {
    path: '/cutDetails',
    component: () => import('@/views/user/cutting/details'),
    meta: { title: '产学研情报' },
    hidden: true
  },
  {
    path: '/early',
    component: Layout,
    children: [
      {
        path: '/early',
        component: () => import('@/views/user/early/early'),
        meta: { title: '监测预警', icon: '5' },
      },
    ]
  },
  // {
  //   path: '/CostWarning',
  //   component: Layout,
  //   children: [
  //     {
  //       path: '/CostWarning',
  //       component: () => import('@/views/user/CostWarning/CostWarning'),
  //       meta: { title: '专利费用预警', icon: '13' },
  //     },
  //   ],
  // },
  // {
  //   path: '/litigation',
  //   component: Layout,
  //   children: [
  //     {
  //       path: '/litigation',
  //       component: () => import('@/views/user/litigation/litigation'),
  //       meta: { title: '诉讼管理', icon: '16' },
  //     },
  //   ],
  // },
  {
    path: '/VisitsNeeds',
    component: Layout,
    children: [
      {
        path: '/VisitsNeeds',
        component: () => import('@/views/user/VisitsNeeds/VisitsNeeds'),
        meta: { title: '走访及需求管理', icon: '12' },
      },
    ],
  },
  {
    path: '/industry',
    is_admin_view: 0,
    component: Layout,
    children: [
      {
        path: '/industry',
        component: () => import('@/views/user/industry/industry'),
        meta: { title: '行业报告', icon: '18' },
      },
    ],
  },
  {
    path: '/UserConsulting',
    is_admin_view: 0,
    component: Layout,
    children: [
      {
        path: '/consulting',
        component: () => import('@/views/user/consulting/consulting.vue'),
        meta: { title: '业务咨询', icon: '12' },
      },
    ]
  },
  {
    path: '/litigation/details',
    component: () => import('@/views/user/litigation/details'),
    hidden: true,
  },
  {
    path: '/litigation/docking',
    component: () => import('@/views/user/litigation/docking'),
    hidden: true,
  },
  // {
  //   path: '/trend',
  //   component: Layout,
  //   children: [
  //     {
  //       path: '/trend',
  //       component: () => import('@/views/user/trend/trend'),
  //       meta: { title: '趋势分析',icon:'17'},
  //     },
  //   ],
  // },
  {
    path: '/costdetails',
    component: () => import('@/views/user/CostWarning/details'),
    meta: { title: '费用预警详情', serve: true },
    hidden: true
  },
  {
    path: '/certificateExpire',
    component: () => import('@/views/user/certificateExpire'),
    meta: { title: '证书到期预警', serve: true },
    hidden: true
  },
  {
    path: '/report',
    component: () => import('@/views/user/early/report'),
    meta: { title: '专利月报' },
    hidden: true
  },
  {
    path: '/userCenter',
    component: () => import('@/views/public/userCenter'),
    meta: { title: '个人中心', serve: true },
    hidden: true
  },
  {
    path: '/upPwd',
    is_admin: 1,
    component: () => import('@/views/public/upPwd'),
    meta: { title: '高级搜索', serve: false },
    hidden: true
  },
  {
    path: '/center',
    is_admin_view: 0,
    component: Layout,
    children: [
      {
        path: '/center',
        component: () => import('@/views/user/center/center'),
        meta: { title: '消息中心', icon: '6' },
      },
    ]
  },

  {
    path: '/system',
    component: Layout,
    is_admin_view: 0,
    children: [
      {
        path: '/system',
        component: () => import('@/views/user/system/system.vue'),
        meta: { title: '系统管理', icon: '11' },
      },
    ]
  },
   {
    path: '/analysis',
    component: Layout,
    is_admin_view:0,
    children: [
      {
        path: '/analysis',
        component: () => import('@/views/user/analysis/index.vue'),
        meta: { title: '趋势分析',icon:'11'},
      },
      {
        path: '/analysisTrue',
        component: () =>
          import('@/views/administrators/work/components/analysisTrue.vue'),
      },
      {
        path: '/analysisMoreList',
        component: () =>
          import('@/views/administrators/work/components/analysisMoreList.vue'),
      },
      {
        path: '/analysisLitigation',
        component: () =>
          import('@/views/administrators/work/components/analysisLitigation.vue'),
      },
    ]
  },

  {
    path: '/centerDetail',
    component: () => import('@/views/user/center/detail'),
    meta: { title: '消息详情' },
    hidden: true
  },
  {
    path: '/AdvancedSearch',
    component: () => import('@/views/public/AdvancedSearch'),
    meta: { title: '高级搜索', serve: true },
    hidden: true
  },

  // 404 page must be placed at the end !!!
  { path: '*', redirect: '/404', hidden: true },


]
